Skip to content

Enable blocking Codecov coverage status#270

Merged
rekby merged 1 commit into
mainfrom
codecov-coverage-status
Jul 9, 2026
Merged

Enable blocking Codecov coverage status#270
rekby merged 1 commit into
mainfrom
codecov-coverage-status

Conversation

@vgvoleg

@vgvoleg vgvoleg commented Jul 7, 2026

Copy link
Copy Markdown
Member

The project and patch coverage statuses were informational: true, so Codecov never failed a PR on coverage regressions. This switches them to blocking gates: project fails when overall coverage drops by more than 1% versus the base branch (target: auto, threshold: 1%), and patch requires the PR diff to be at least 80% covered.

Mirrors the gates already used in ydb-python-sdk, keeping coverage enforcement uniform across the native SDKs. Component and comment config is untouched.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Codecov configuration so coverage checks become blocking gates instead of informational-only, ensuring PRs can fail on coverage regressions and insufficient diff coverage.

Changes:

  • Makes the project coverage status blocking by setting target: auto with a threshold: 1% allowed drop.
  • Makes the patch (diff) coverage status blocking by requiring target: 80% for changed code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.67%. Comparing base (bb5937d) to head (7aae8c3).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #270   +/-   ##
=========================================
  Coverage     52.67%   52.67%           
  Complexity      989      989           
=========================================
  Files            66       66           
  Lines          2690     2690           
=========================================
  Hits           1417     1417           
  Misses         1273     1273           
Components Coverage Δ
Native SDK 52.67% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rekby rekby merged commit 56a783e into main Jul 9, 2026
24 of 25 checks passed
@rekby rekby deleted the codecov-coverage-status branch July 9, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants